package com.example.blog2023.bean.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author cfy
 * @date 2023/12/11
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Blog {
    private Integer id;
    //标题
    private String title;
    //分类
    private String type;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    //是否推荐
    private char recommend;
    //标签
//    private String label;
    //内容
    private String content;
    //转载
    private char shareInfo;
    //赞赏
    private char appreciation;
    //评论
    private char comment;
    private String format;
}
